package com.twu.biblioteca;

/**
 * Created by kathy on 16/04/14.
 */
public class Movie {

    private StringBuilder id;
    private StringBuilder name;
    private int year;
    private StringBuilder director;
    private Rating rating;
    private boolean isAvailable = true;

    public Movie(StringBuilder id, StringBuilder name, int year, StringBuilder director, Rating rating){
        this.id = id;
        this.name = name;
        this.year = year;
        this.director = director;
        this.rating = rating;
    }

    public void printMovie(){
        System.out.print(id + "\t\t");
        System.out.print(name + "\t\t");
        System.out.print(year + "\t\t");
        System.out.print(director + "\t");
        System.out.print(rating + "\n");
    }

    public StringBuilder getId(){
        return id;
    }

    public boolean getIsAvailable(){
        return isAvailable;
    }

    public void setIsAvailable(boolean isAvailable) {
        this.isAvailable = isAvailable;
    }
}
